surface: Be smarter about autohide
authorMatthias Clasen <mclasen@redhat.com>
Tue, 3 Nov 2020 20:28:40 +0000 (15:28 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 Nov 2020 19:56:30 +0000 (14:56 -0500)
commitdcfb6e5ef5577ee6a1bca56e356a91c88d9e8f9c
tree6f17c9819ce6f0510ee57e2d4dd058ec6a2c9047
parent75f96b83de6ab547220b1ce2cbaf03087f365412
surface: Be smarter about autohide

When we close grabbing popups due to an outside
click, check at each level if the click is still
outside. This makes closing the nested popover
menu in the popover on page 3 of widget-factory
work as expected, when you click the menubutton
again.
gdk/gdksurface.c